<!--
function LoginDirect(strUsrName,strPassword)
{
	var LoginObj,lret;
	LoginObj = new ActiveXObject("XMNetHelper.NetLogin");
	lret = LoginObj.LoginDirect(strUsrName,strPassword);
	delete LoginObj;
	return lret;
}

function LoginDialog()
{
	var LoginObj,lret;
	LoginObj = new ActiveXObject("XMNetHelper.NetLogin");
	lret = LoginObj.LoginBox();
	delete LoginObj;

	return lret;
}
function TruevodPlay(strServer,strUrl)
{
	var TruePlayer;
	TruePlayer = new ActiveXObject("XMNetHelper.NetPlayer");
	TruePlayer.Play(strServer,strUrl);
	delete TruePlayer;
	return true;
}

function TruevodPlayEx(strServer,strUrl,strProgName)
{
	var TruePlayer;
	TruePlayer = new ActiveXObject("XMNetHelper.NetPlayer");
	TruePlayer.PlayEx(strServer,strUrl,strProgName);
	delete TruePlayer;
	return true;
}

function TruevodPlayExID(strServer,strUrl,strProgName,nProgID)
{
	var TruePlayer;
	TruePlayer = new ActiveXObject("XMNetHelper.NetPlayer");
	TruePlayer.PlayExID(strServer,strUrl,strProgName,nProgID);
	delete TruePlayer;
	return true;
}

//
function DisableIEMaximize()
{
	var TruePlayer;
	TruePlayer = new ActiveXObject("XMNetHelper.NetPlayer");
	TruePlayer.IESizeEnable(0);
	delete TruePlayer;
	return true;
}
//
function NullPlay(strServer,strUrl,strProgName,strFileExt)
{
	var TruePlayer;
	TruePlayer = new ActiveXObject("XMNetHelper.NetPlayer");
	TruePlayer.NullPlay(strServer,strUrl,strProgName,strFileExt);
	delete TruePlayer;
	return true;
}
function PlayBroadCast(strServerIPAddr, nChannelNo)
{
	var TruePlayer;
	TruePlayer = new ActiveXObject("XMNetHelper.NetPlayer");
	TruePlayer. PlayBroadCast(strServerIPAddr, nChannelNo);
	delete TruePlayer;
	return true;
}
function AutoReceive ()
{
	var TruePlayer;
	TruePlayer = new ActiveXObject("XMNetHelper.NetPlayer");
	TruePlayer. AutoReceive();
	delete TruePlayer;
	return true;
}

function NetPlay(strProgName,strUrl)
{
	var TruePlayer;
	TruePlayer = new ActiveXObject("XMNetHelper.NetPlayer");
	TruePlayer.PlayURL(strProgName,strUrl);
	delete TruePlayer;
	return true;
}
function OpenWindow(url,h,w,caption)
{
	var winobj;
	var left=(screen.width-w)/2
	var top=(screen.height-h)/2
	stropenopt = "height=" +h+",width="+w+",status=no,toolbar=no,menubar=no,location=no resizable =no top=" +top + " left=" + left;
	winobj = window.open(url,caption,stropenopt,true);
	return winobj;
}

function OpenWindowEx(url,h,w,caption)
{
	var winobj;
	var left=(screen.width-w)/2
	var top=(screen.height-h)/2
	stropenopt = "height=" +h+",width="+w+",status=no,scrollbars=yes,toolbar=no,menubar=no,location=no resizable =no top=" +top + " left=" + left;
	winobj = window.open(url,caption,stropenopt,true);
	return winobj;
}
function ShowProgInfo(ProgId)
{
	var strUrl;
	strUrl="proginfo.jsp?ProgId="+ ProgId;
	if (document.InfoWnd)
		{
		if (document.InfoWnd.closed==false)
			{
			//document.InfoWnd.location=strUrl;
			//document.InfoWnd.focus();
			document.InfoWnd.close();
			}		
		}
	document.InfoWnd=OpenWindowEx(strUrl,550,631,"��Ŀ��Ϣ��");
	return true;
}

//-->
